import searchicon from '../../../../imgs/searchicon.png'


export default class SearchBrandInput extends React.Component{
    render(){
        const {isSupp,onClick,onChange,onKeyup}=this.props
        return(
            <div className={isSupp? 'search-page-supp-input-box':'search-page-brand-input-box'}>
                <input
                    type="text"
                    placeholder={isSupp? '搜索供应商名称':'搜索品牌名称'}
                    className={'search-page-brand-input'}
                    onChange={onChange}
                    // onKeyUp={onKeyup}
                />
                <img
                    onClick={onClick}
                    src={searchicon}
                    alt=""/>
            </div>
        )
    }
}
